package cn.zhangjie.pet.service;

import cn.zhangjie.basic.service.IBasicService;
import cn.zhangjie.basic.util.PageList;
import cn.zhangjie.pet.domain.SearchMasterMsg;
import cn.zhangjie.pet.dto.AcceptDto;
import cn.zhangjie.pet.query.SearchMasterMsgQuery;

import java.util.List;

/**
 * (SearchMasterMsg)表服务接口
 *
 * @author makejava
 * @since 2022-08-09 14:23:47
 */
public interface ISearchMasterMsgService extends IBasicService<SearchMasterMsg> {

    /**
     * 无极限树
     *
     * @return 无极限树结果
     */
    //接口: 部门树
    List<SearchMasterMsg> deptTree();
    //寻主
    void publish(SearchMasterMsg smm, Long id);
    //待处理查询接口
    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, Long id);
    //待处理查询接口
    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, Long id);
    //拒单
    void reject(Long id);
    //接单处理
    void accept(AcceptDto dto, Long id);
}
